package com.cyzy.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.cyzy.dto.ProductWithBanner;
import com.cyzy.mapper.ProductsMapper;
import com.cyzy.pojo.Product;
import com.cyzy.service.ProductService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ProductServiceImpl extends ServiceImpl<ProductsMapper, ProductWithBanner> implements ProductService {
    @Autowired
    private ProductsMapper productsMapper;
    @Override
    public List<ProductWithBanner> getProducts(Integer productId) {
        return productsMapper.selectProductWithBanner(productId);
    }
}
